import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createHead } from '@vueuse/head'
import VMdEditor from '@kangc/v-md-editor'
import '@kangc/v-md-editor/lib/style/base-editor.css'
import githubTheme from '@kangc/v-md-editor/lib/theme/github.js'
import '@kangc/v-md-editor/lib/theme/style/github.css'
import hljs from 'highlight.js'

import 'ant-design-vue/dist/reset.css'
import { countdown } from './directives/countdown'

const app = createApp(App)
const head = createHead()
VMdEditor.use(githubTheme, { Hljs: hljs })
app.use(router)
app.use(head)
app.use(VMdEditor)
app.directive('countdown', countdown)
app.mount('#app')


